Average moves for a beetle to leave a strip
A beetle stands on cell 2 of a strip of cells numbered 0 to 6. Each step it walks to an adjacent cell, right or left with equal probability . It leaves the strip when it reaches cell 0 or cell 6.
On average, how many steps does the beetle take before leaving?