added solution to UVa 10567-Helping Fill Bates