Revolut interview question

Q: Solve a hashmap coding task