please tell me where i am wrong.
Please tell the algorithm you have implemented and share your code via ide.codingblocks.com