Algorithm For Stack Implementation Using Queue