Stack with Arrays (C++)