title: Program Find String Start End Geeks
signature: programFindStringStartEndGeeks :: String -> String -> Bool
  programFindStringStartEndGeeks str corner = 
test_code: import Text.Printf
  import Control.Exception (catch, SomeException)
  import Data.Typeable
  import qualified Data.List as List
  import qualified Data.Map as Map
  import qualified Data.Set as Set
  
  -- SOLUTION CODE
  -- ============================================
  
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  validateSolution :: Bool -> Bool -> Bool
  validateSolution actual expected = do
      actual == expected
  
  
  driver :: String -> String -> Bool -> String
  driver str corner expected = do
      if (validateSolution (PLACEHOLDER_FN_NAME str corner) expected)
          then "PASSED"
      else "FAILED"
  
  main = do
      printf "TEST-0...%s\n" (driver ("geeksmanishgeeks") ("geeks") (True) )
  
      printf "TEST-1...%s\n" (driver ("shreyadhatwalia") ("abc") (False) )
  
      printf "TEST-2...%s\n" (driver ("10000100") ("100") (True) )
  
      printf "TEST-3...%s\n" (driver ("abaa") ("a") (True) )
  
      printf "TEST-4...%s\n" (driver ("30645530") ("30") (True) )
  
      printf "TEST-5...%s\n" (driver ("0000011011001") ("001") (False) )
  
      printf "TEST-6...%s\n" (driver ("dkqEd") ("d") (True) )
  
      printf "TEST-7...%s\n" (driver ("48694119324654") ("654") (False) )
  
      printf "TEST-8...%s\n" (driver ("1101010010") ("11") (False) )
  
      printf "TEST-9...%s\n" (driver ("Ks") ("KsFLmngGGOmHKs") (False) )
  
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 );
  }