Pergunta de entrevista da empresa Fleetworks

Algorithm problem solving which is reasonable