Bridgenext interview question

reverse a number, count the steps program