### Question:
Sequence1Algorithm extends AlgorithmLevelImpl { @Override public String get(int n) { StringBuilder b = new StringBuilder(); for(int i = 0; i < 1000; i++) { b.append(String.valueOf(10 + i)); } String result = b.toString(); return result.substring((n - 1)*3, n*3); }  @Override String get(int n); @Override String description(); @Override int complexity(); @Override String author();  }### Answer:
@Test public void shouldWork() { Sequence1Algorithm algorithm = new Sequence1Algorithm(); assertEquals("101", algorithm.get("1")); assertEquals("112", algorithm.get("2")); assertEquals("131", algorithm.get("3")); assertEquals("415", algorithm.get("4")); assertEquals("161", algorithm.get("5")); assertEquals("718", algorithm.get("6")); assertEquals("192", algorithm.get("7")); assertEquals("021", algorithm.get("8")); assertEquals("222", algorithm.get("9")); assertEquals("324", algorithm.get("10")); assertEquals("252", algorithm.get("11")); assertEquals("627", algorithm.get("12")); assertEquals("282", algorithm.get("13")); assertEquals("930", algorithm.get("14")); }