• + 1 comment

    Solution is Amazing. But can you tell me why did you added s2.substring(index+1); Thanks in advance.