Optym Interview Question

Technical Interview: data structure and algorithm intermediate coding question