Amazon Interview Question

Asked about how to implement a contract system with corouteinues