Why am i getting wrong answer

Please check my code. I am getting WA on test 16 while submitting the code

Code: https://ide.codingblocks.com/s/242954