Soluction for Collatz Problem