[docooler] reverse a integer