All indices problem

why is output not coming?

hello @kumarsaksham601 i will check the code and let you know about the problem .

please see this code : https://ide.codingblocks.com/s/363191
i have rewritten your logic as there was some error .