Add solution to UVA 10420