title: Sum Series 555555 N Terms
signature: function sum_series_555555_n_terms(n)
test_code: using Printf
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  function validate_solution(actual, expected)
      return actual == expected
  end
  
  function driver(n, expected)
      try
  
          if validate_solution(PLACEHOLDER_FN_NAME(n), expected)
              return "PASSED";
          end
          return "FAILED";
      catch exception_obj
          return string(Base.typename(typeof(exception_obj)).wrapper);
      end
  end
  
  function main()
      
      result = driver(18, 617200000000000000);
      @printf("TEST-0...%s\n",result);
      
      result = driver(14, 61719999999991);
      @printf("TEST-1...%s\n",result);
      
      result = driver(15, 617199999999991);
      @printf("TEST-2...%s\n",result);
      
      result = driver(3, 614);
      @printf("TEST-3...%s\n",result);
      
  end
  
  main()
source_py: def sum_series_555555_n_terms(n):
      return int(((0.6172 * (pow(10, n) - 1)) - (0.55 * n)))
source_cpp: int sum_series_555555_n_terms(int n) {
    return 0.6172 * ( pow ( 10, n ) - 1 ) - 0.55 * n;
  }