ZS Associates interview question

A puzzle about calculating time using two ropes.