input: Write a python function to simulate an episode in the LeftRightEnv environment.
  assert simulate_episode() == 1
  assert simulate_episode() == 1
  assert simulate_episode() == 1
output: def simulate_episode():
      import random
      position = 0
      while position != -1 and position != 1:
          action = random.choice([-1, 1])
          position += action
      return position