so for my assignment, I need to used the array-based version of the ADT stack to create a stack called myStack. I then need to create a string variable called str and assign it to the string "abcdefg" and access the characters in the string and push each character onto the stack, starting with the first. After all the characters are in the stack, I need to pop and display each of them on one line. Here is what I'm using:so for my assignment, I need to used the array-