Why it is so ? These may be set to. unusual way. code. These may be set to 0 on your system but not on the coding platform. I still am getting the same message. BufferedReader b = new BufferedReader (new InputStreamReader(System.in)); Learn to program with my books for beginners, free under a Creative Commons license: Take my Automate the Boring Stuff with Python online Udemy course. Make sure your input and output both are exactly same as the test cases. while (n>0) Plz help, I’m losing my marbles. The SegFault can be caused by many things, but experience says it is mainly through two causes: (a) Infinite Recursion - or basically when you run out of stack memory. Repeated String Given a string S (containing at most 10^5 lowercase English letters). for(int i=3;i