Hulu Interview Question

using CAS to implement a lock-free queue