CMIMC 2022 Team Problem 9

For natural numbers n, let r(n) be the number formed by reversing the digits of n, and take f(n) to be the maximum value of \frac{r(k)}{k} across all n-digit positive integers k.

If we define g(n)=\left\lfloor\frac{1}{10-f(n)}\right\rfloor, what is the value of g(20)?