Hailstone Sequence of a given number upto 1

  
Your score is:       
Copy paste the above completed code in below IDE and run