title: Program Find String Start End Geeks
signature: fun programFindStringStartEndGeeks(str: String, corner: String): Boolean {
test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Boolean, expected:Boolean):Boolean{
    return actual.equals(expected)
  }
  fun driver(str: String, corner: String, expected:Boolean):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(str, corner), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver("geeksmanishgeeks", "geeks", true)
      println("TEST-0...${result}")
      
      result = driver("shreyadhatwalia", "abc", false)
      println("TEST-1...${result}")
      
      result = driver("10000100", "100", true)
      println("TEST-2...${result}")
      
      result = driver("abaa", "a", true)
      println("TEST-3...${result}")
      
      result = driver("30645530", "30", true)
      println("TEST-4...${result}")
      
      result = driver("0000011011001", "001", false)
      println("TEST-5...${result}")
      
      result = driver("dkqEd", "d", true)
      println("TEST-6...${result}")
      
      result = driver("48694119324654", "654", false)
      println("TEST-7...${result}")
      
      result = driver("1101010010", "11", false)
      println("TEST-8...${result}")
      
      result = driver("Ks", "KsFLmngGGOmHKs", false)
      println("TEST-9...${result}")
      
          
  }
  
  main()
source_py: def program_find_string_start_end_geeks(str, corner):
      n = len(str)
      cl = len(corner)
      if (n < cl):
          return False
      return ((str[:cl] == corner) and (str[(n - cl):] == corner))
source_cpp: bool program_find_string_start_end_geeks(string str, string corner) {
    int n = str . length ( );
    int cl = corner . length ( );
    if ( n < cl ) return false;
    return ( str . substr ( 0, cl ) . compare ( corner ) == 0 && str . substr ( n - cl, cl ) . compare ( corner ) == 0 );
  }