Pregunta de entrevista de Equinix

One algorithm question and some real work problems