solved Problem 1 'Hiking'