New10 interview question

Take home assignment