Pergunta de entrevista da empresa Fidelity Investments

Can you solve a leet code