Collatz Conjecture (output on multiple lines)

Sign in to test your solution.
# Write your code here