Solution for markLength4.java

Feel free to pull :)