Pregunta de entrevista de Standard Chartered Bank

how to solve a problem?