Question d’entretien chez Google DeepMind

Medium difficulty array coding question