Figure interview question

Implement a Spring Controller -> Service example