Optym interview question

algorithms