Can't understand the approach to solve this

As this question is just looking very tedious and too much redundant work. I want to know how to exactly approach this question??

@namandubey20
Watch this video. This will clear your doubts about this problem.