Question d’entretien chez Google

How to solve mathematical problem