Pregunta de entrevista de Yahoo

Questions on Arrays, with reducing memory complexity and time complexity