question link :- ques i am only able to pass 1st subtask (30 points) of this question. I am following the simple logic for this problem. can anyone please help me and explain me how i can think of that solution which completely pass the subtask as well as how i can think in that particular direction whenever in future i face the question like this. I mean that thinking of that solution which gives me 100 points AC. my solution for 30 points solution