PayPal interview question

Burning rope Puzzle, Calculate Mode