link text
i am getting WA for my solution
can anyone plz tell where i am going wrong or any corner test case that i am missing??