Collatz problem solution