TrueLayer interview question

Completed a take home coding challenge.