Playtika interview question

Technical: implement a stack