Pergunta de entrevista da empresa Standard Chartered Bank

Technical question - Had to fix the codes on the spot