Valid Stack Operations | CodeChef