public String getAnswer(){
    long triangleNum = 0;
    long naturalNumber = 1;
    short numTimesDivisible = 0;
    while(true){
      triangleNum += naturalNumber;
      naturalNumber++;
      numTimesDivisible = 0;
      for(long x = triangleNum; x > 0; x--)
        if( triangleNum % x == 0 )
          numTimesDivisible++;
      if(numTimesDivisible > 500)
        return String.valueOf(triangleNum);
    }
  }