added can jump solution, both iterative and recursive