Collatz: if n is even, halve it; if odd, make it 3n + 1. Write collatz_steps(n) returning how many steps it takes to reach 1.
collatz_steps(6) → 8
collatz_steps(1) → 0
Submit runs 5 tests, including hidden edge cases.
Run your code to see the output here.