the output is correct but the testcases are not passing.
hello @jayasmit98 add newline character at the end and then try