Revolut Interview Question

Q: Given a skeleton program complete business logic