Dell Technologies interview question

Asked a coding question to find biggest digit in an integer.