Buliding logic for questions

how can i build logic of such type of questions before watching the video my mind totally goes blank whenever i try to solve this kind of questions by myself

hi @dheerajmishra992
i would say , just practice as many questions as you can then only you will be able to have multiple approachs for a particular question. It always difficult to get it right in first try.