Dell Technologies interview question

rope puzzle