Nagarro interview question

Program of reversing Number