Pergunta de entrevista da empresa Standard Chartered Bank

how to solve a problem?