How to solve such kind of questions???