Adding UVA Problem 10004

Accepted