Add solution to UVA 10300