Parimatch interview question

Solving mathematical and logical problems