IDrive Interview Question

Given 2 programming problems to solve