Pregunta de entrevista de LVIS

Got a coding assessment with a leetcode hard problem