Revolut Interview Question

2 Leetcode exercises to complete in 1 hour