Pregunta de entrevista de ax (Japan)

Coding exercise and open question for algorithm development