Algorithm For Stack Implementation Using Switch In C