Superhuman Interview Question

Question related to stack, of having non continuous character