Pregunta de entrevista de Tripadvisor

Normal DS, Algorithm questions