Return the largest digit in a positive number. For 4728 that is 8.
int largestDigit(int n)
Examples
There are also 4 hidden tests you can't see. Solve the problem, not the examples.