stack program in c  like arrayUtil