Draft solution for BeautifulStrings problem
Added class javadoc.