Pergunta de entrevista da empresa Microsoft

OA at Codility easy-mid leetcode question