Virta (Finland) Interview Question

Online coding test. 3 problems.