added code for Uva-10008
Merge pull request #3 from rahulroot/10008-code

added code for Uva-10008