Orange Interview Question

coditly test was 3 problems in 120 minutes