added solution to UVa 11157-Dynamic Frog