Pregunta de entrevista de Trilitech

Problem solving challenge even though it was meant to be a data structures and algorithms interview