Yahoo Interview Question

Questions on Arrays, with reducing memory complexity and time complexity