Pergunta de entrevista da empresa ApplyBoard

Basic coding problems involving array manipulation.