Problem statement #14
collatz-fn and collatz-length