output given in the test cases are sorted in dictionary order and i am getting different output.how to correct this please guide me. here is my code
Wrong answer for testcase
added comments
output given in the test cases are sorted in dictionary order and i am getting different output.how to correct this please guide me. here is my code
added comments