title: Sum K Th Group Odd Positive Numbers 1
signature: function sum_k_th_group_odd_positive_numbers_1(k)
source_py: def sum_k_th_group_odd_positive_numbers_1(k):
      return ((k * k) * k)
source_cpp: int sum_k_th_group_odd_positive_numbers_1(int k) {
    return k * k * k;
  }
question_info.entry_fn_name: sum_k_th_group_odd_positive_numbers_1
question_info.entry_cls_name: Solution
question_info.test_case_ids: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
question_info.test_code: 
  
  -- SOLUTION CODE
  -- ============================================
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  function isCorrect(actual, expected)
      if type(expected) ~= type(actual) then
          return false
      end
      
      if type(expected) == 'table' then
          for k,v_expected in pairs(expected) do
              
              if actual[k] == nil then
                  return false
              end
              local v_actual = actual[k]
              if not isCorrect(v_actual, v_expected) then
                  return false
              end
              actual[k]=nil
          end
      
          if next(actual) then 
              return false
          end
          return true
      else
          return actual == expected
      end
  end
  
  function validateSolution(actual, expected)
      return isCorrect(actual,expected)
  end
  
  function driver(k, expected)
      local exec_result;
      local status, error_msg = pcall(function () 
          exec_result=PLACEHOLDER_FN_NAME(k) 
      end)
      if status then
          if validateSolution(exec_result,expected) then
              return "PASSED"
          end
          return "FAILED"
      else
          return string.format("ERROR=%s",string.gsub(error_msg,".*:[%d]+: ",""))
      end
  end
      
  function main()
      result = driver(57, 185193)
      print(string.format("TEST-0...%s",result))
  
      result = driver(96, 884736)
      print(string.format("TEST-1...%s",result))
  
      result = driver(14, 2744)
      print(string.format("TEST-2...%s",result))
  
      result = driver(64, 262144)
      print(string.format("TEST-3...%s",result))
  
      result = driver(24, 13824)
      print(string.format("TEST-4...%s",result))
  
      result = driver(74, 405224)
      print(string.format("TEST-5...%s",result))
  
      result = driver(85, 614125)
      print(string.format("TEST-6...%s",result))
  
      result = driver(27, 19683)
      print(string.format("TEST-7...%s",result))
  
      result = driver(78, 474552)
      print(string.format("TEST-8...%s",result))
  
      result = driver(1, 1)
      print(string.format("TEST-9...%s",result))
  
  end
  
  main()
question_info.test_list: [{"idx": 0, "outputs": 185193, "inputs": {"k": 57}}, {"idx": 1, "outputs": 884736, "inputs": {"k": 96}}, {"idx": 2, "outputs": 2744, "inputs": {"k": 14}}, {"idx": 3, "outputs": 262144, "inputs": {"k": 64}}, {"idx": 4, "outputs": 13824, "inputs": {"k": 24}}, {"idx": 5, "outputs": 405224, "inputs": {"k": 74}}, {"idx": 6, "outputs": 614125, "inputs": {"k": 85}}, {"idx": 7, "outputs": 19683, "inputs": {"k": 27}}, {"idx": 8, "outputs": 474552, "inputs": {"k": 78}}, {"idx": 9, "outputs": 1, "inputs": {"k": 1}}]