TrueLoyal interview question

implement stack and BST using any programming language