TSB Bank interview question

Spring boot exercise creating a simple endpoint with some logic