ZS Associates Interview Question

A puzzle about calculating time using two ropes.