Pregunta de entrevista de Prometheus Group

Array manipulation questions with missing elements