MAQ Software Interview Question

implement the functionality of queue using stack functions?