ConnectWise Interview Question

Puzzle of monkey and pole