added code for Uva:11942
Merge pull request #29 from rahulroot/11942-code

added code for Uva:11942