Showing same output as of testcase in eclipse but here showing some different output

@Tusharbhatia15


You were having some space related problems else your code was completely correct.
Mark this as resolved if you are completely satisfied else ask your doubts here.