Pregunta de entrevista de Fleetworks

Algorithm problem solving which is reasonable