RigUp interview question

Standard coding exercise...