Expected moves before a lift reaches an end floor
A test lift starts on floor 5 of a shaft with floors numbered 0 to 12. Each move it goes up one floor with probability or down one with probability . The test ends when it reaches floor 0 or floor 12.
What is the expected number of moves until the test ends?