Pregunta de entrevista de Axon

Straightforward algorithm implementation, will not mention specific details due to NDA.