added solution to UVa 1047-Zones