Question d’entretien chez Microsoft

OA at Codility easy-mid leetcode question