Pregunta de entrevista de Fidelity Investments

In the Tech Interview ,I couldn't answer a few puzzles.