class Position {
    int row;
    int column;

    Position(int row, int column) {
      this.row = row;
      this.column = column;
    }

    float distanceTo(Position other) {
      return Math.abs(column - other.column) + Math.abs(row - other.row);
    }

    @Override
    public String toString() {
      return "Position{row=" + row + ", column=" + column + '}';
    }
  }

  @Override
  public float getDistance(char c1, char c2) {
    Position p1 = getPosition(c1);
    Position p2 = getPosition(c2);
    return p1.distanceTo(p2);
  }

  private Position getPosition(char searchKey) {<FILL_FUNCTION_BODY>

    char searchKeyLowerCase = Character.toLowerCase(searchKey);
    int row = -1;
    int column = -1;
    int rowCount = 0;
    int columnCount;
    for (char[] rowKeys : getKeys()) {
      columnCount = 0;
      for (char c : rowKeys) {
        if (c == searchKeyLowerCase) {
          row = rowCount;
          column = columnCount;
        }
        columnCount++;
      }
      rowCount++;
    }
    if (row == -1 || column == -1) {
      throw new RuntimeException("Could not find '" + searchKey + "' on keyboard - only letters are supported");
    }
    return new Position(row, column);
  
<no_super_class>