Update README.md

Wrote a solution in Java.