NVIDIA interview question

to implement a queue using array - pop and push. and to write allocation functions. and to implement binary distance algorithm.