Pregunta de entrevista de TSB Bank

Spring boot exercise creating a simple endpoint with some logic