Pergunta de entrevista da empresa Rosetta Stone

There were some ACM technical problems I had to solve on the first on site interview. This was a live coding exercise in the language of my choice.