Pregunta de entrevista de Lemma Technologies

array manipulation dsa question was asked initially