Cummins Interview Question

solve problem with creativity