OOZOU Interview Question

Got a take home assignment