Output correct but no test case satisfied

hey @Yuganshu
Code is fine
just a change
System.out.println(getMaxOccuringChar(str));
instead of
System.out.println("Max occurring character is " + getMaxOccuringChar(str));
correct code