WM Interview Question

Two ropes brain teaser.