code: private String fill(char symbol, int times) {
          char[] result = new char[times];
  
  
          for (int i = 0; i < times; i++) {
              result[i] = symbol;
          }
  
          return new String(result);
      }
docs: Returns string of specified length filled with specified symbol
  
  @param symbol character with which String would be filled
  @param times  amount of times character would be copied
  @return filled String