embedUR systems interview question

How to implement queue using stack, balancing of AVL tree, calloc vs malloc in c.