Originally posted by Vishal Chugh:
i tried but failed , please explain why so?
It would very difficult for anyone to explain why your code failed it they can't see it. Post what you've tried, what you were expecting, and what actually happened, and I'm sure someone will point out why it didn't work.