Revolut Interview Question

Offline algorithms hacker rank: 3 tasks for 110 minutes.