Revolut interview question

2 Leetcode exercises to complete in 1 hour