Creating first excercise program

implementing stack using array list