title: Sum K Th Group Odd Positive Numbers 1
signature: class Solution {
  
      public Integer sumKThGroupOddPositiveNumbers1(Integer k) {
test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer k, Integer expected){
          try{
              Driver driver = new Driver();
              if (driver.run(k,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(57, 185193);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(96, 884736);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(14, 2744);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(64, 262144);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(24, 13824);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(74, 405224);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(85, 614125);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(27, 19683);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(78, 474552);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(1, 1);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer k, Integer expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(k),expected);
      }
      
      public boolean validateSolution(Integer actual, Integer expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
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;
  }