SPOJ XUDOKU help

I am trying to solve this SPOJ problem but am receiving wrong answer verdict. The problem seems simple but I am clueless where I am going wrong. This is my approach. Any help will be appreciated.