Fidelity Investments Interview Question

Tasks involving two pointers and the “Tic Tac” game