Revolut interview question

Q: Given a skeleton program complete business logic