Design event timeout detector | Applied Intuition Interview Question