Added solution for Collatz

Solved it in python 3