Intel Corporation interview question

implement a queue that is used by two processes.