Sum of odd placed and even placed digits

My two test case fail on this problem link
https://hack.codingblocks.com/app/contests/2108/25/problem” and code link"
https://ide.codingblocks.com/s/418285"