Pergunta de entrevista da empresa Optym

Technical Interview: data structure and algorithm intermediate coding question