Pregunta de entrevista de Dataminr

Solve the Leetcode problem watched by an interviewer?