Update problem.md

I just corrected spelling, grammar and flow. I didn't make any formatting changes this time around.

"earliest to latest" could be "first to last", if you prefer.