added code for Uva-10010
Merge pull request #4 from rahulroot/10010-code

 added code for Uva-10010