Pergunta de entrevista da empresa Thoughtworks

The first coding round had a very easy array problem.