Revolut Interview Question

THey asked me to solve a case study