Time to Cross a Bridge

Time to Cross a Bridge - Coding Problem | K5kC