title: One Line Function For Factorial Of A Number
signature: fun oneLineFunctionForFactorialOfANumber(n: Int): Long {
test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Long, expected:Long):Boolean{
    return actual.equals(expected)
  }
  fun driver(n: Int, expected:Long):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(16, 20922789888000)
      println("TEST-0...${result}")
      
      result = driver(6, 720)
      println("TEST-1...${result}")
      
          
  }
  
  main()
source_py: def one_line_function_for_factorial_of_a_number(n):
      return (1 if ((n == 1) or (n == 0)) else (n * one_line_function_for_factorial_of_a_number((n - 1))))
source_cpp: int one_line_function_for_factorial_of_a_number(int n) {
    return ( n == 1 || n == 0 ) ? 1 : n * one_line_function_for_factorial_of_a_number ( n - 1 );
  }