title: Sum Series 555555 N Terms
signature: def sumSeries555555NTerms(n: Int) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Long , expected: Long): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(n: Int, expected: Long): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        18, 
        617200000000000000L    
      )}")   
  
  
      println(s"TEST-1...${driver(
        14, 
        61719999999991L    
      )}")   
  
  
      println(s"TEST-2...${driver(
        15, 
        617199999999991L    
      )}")   
  
  
      println(s"TEST-3...${driver(
        3, 
        614L    
      )}")   
  
  }
  
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;
  }