Domanda di colloquio di Microsoft

questions was about algorithm with array manipulation