LAZY: add distinctSubstring.java