Find when failures started in log stream | Amazon Interview Question