Can anybody tell me why i am getting wrong ans

https://ide.codingblocks.com/s/259634