Bloomberg Interview Question

Efficiently compute the flight times of sequence from the collatz function.