Pregunta de entrevista de Infosys

repeated and missing number DSA question