added solution to UVa 507-Jill Rides Again