Ultra fast mathematicians
Hi @vikashkmr519,
There are two error .One is you have used NextLine() to input string but instead use Next() as nextline does not take space seperated input.Other is you have indexed s.charAt(i) but it should be done with j as i you have already used for test cases . I have corrected these bugs in the following code …Check comments .