Whenever you're ready, walk me through how you'd approach this.
What is the difference between @Controller and @RestController?
Asked in the Technical Round 2 stage. The interviewer is checking whether you know how Spring MVC chooses between view rendering and writing the response body, and what annotation composition changes that behavior.
Keep your answer focused on Spring MVC and Spring Boot, not on unrelated web frameworks or general HTTP theory.