Write an algorithm to implement a stack using arrays Facebook Twitter WhatsApp Pinterest Tumblr Telegram Linkedin