CDK Global interview question

Reversing of digits using different logics