Please check it. Why my two test cases are failed
hello @karanmiglani129 your code is not generalised well.pls check output for n=5
check this code for reference->https://ide.codingblocks.com/s/229506