The main problem is that except for the first two test cases which is quite small, my code is generating wrong output by a huge margin, like in a multiple of 3 or sth. I tried executing it on my computer with hackerRank test cases it gives wrong output which means my logic is not c...