JPMorganChase Interview Question

One of the main things they asked me was to write a Java coding solution using data structures and algorithms concepts. They focused on problem-solving ability, clean code structure, and time complexity analysis. They also asked follow-up questions about how I would optimize the solution and how it would scale in a cloud-based environment using AWS and Spring Boot.