My output is showing correctly but still all test cases are failing can you pls help
check your output for n=6 correct one (see the spaces and all)