Leetcode Insert Delete Get Random Number In Javascript Between 1