Domanda di colloquio di MineWhat

The question was an algorithmic problem related to strings.