this hw wouldnt make sense with generics/arraylist clonse
array stack done