Programming Challenge 3n+ 1