WM interview question

Two ropes brain teaser.