Gfg Stack Implementation In Python