solution to jump using constant space