3n+1 Problem

Solved with sample input and output files.