Pergunta de entrevista da empresa Standard Chartered Bank

How to solve a puzzle on a whiteboard