Can someone please help me how to solve this question? Also where to practice this type of questions?