CusJo interview question

algorithm questions