Bloomberg interview question

Merge Two Sorted Arrays In Place" with one array having empty spaces. create a class with a "steps_from" method that takes an integer and if its even divide n by 2 (n/2) and if its odd (3*n)-1 until n = 1, and return the number of steps required until you hit one.