Revolut Interview Question

SQL queries not very difficult