Quantum simulation of rogue waves in Bose-Einstein condensate: An exact analytical method