Stack explaining by using array.