Consider functions $f$ with $|f(x)-f(y)|\le\frac13|x-y|$ for all real $x$, $y$, and $f(0)=f(600)$. What is the greatest possible value of $f(f(500))-f(f(100))$?
Equality is possible: with $c=1000$, let $f$ be piecewise linear through $(0,c)$, $(100,c-\frac{100}3)$, $(500,c+\frac{100}3)$, $(600,c)$, $(c-\frac{100}3,c-\frac{100}9)$, $(c+\frac{100}3,c+\frac{100}9)$, and constant outside $[0,c+\frac{100}3]$. Its slopes are $-\frac13,\frac16,-\frac13,-\frac1{33},\frac13$, all of absolute value at most $\frac13$, so $f$ satisfies the condition, and $f(0)=f(600)=c$. Then $f(500)=c+\frac{100}3$ and $f(100)=c-\frac{100}3$, so the difference is $f(c+\frac{100}3)-f(c-\frac{100}3)=\frac{200}9$. The answer is $\boxed{\frac{200}9}$.