added solution for frogJmp