title: String Containing First Letter Every Word Given String Spaces
signature: def stringContainingFirstLetterEveryWordGivenStringSpaces(str: String) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: String , expected: String): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(str: String, expected: String): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(str),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        "t a", 
        "ta"    
      )}")   
  
  
      println(s"TEST-1...${driver(
        "77 78 2 600 7", 
        "77267"    
      )}")   
  
  
      println(s"TEST-2...${driver(
        "011 10 10", 
        "011"    
      )}")   
  
  
      println(s"TEST-3...${driver(
        "kV Co O iR", 
        "kCOi"    
      )}")   
  
  
      println(s"TEST-4...${driver(
        "2", 
        "2"    
      )}")   
  
  
      println(s"TEST-5...${driver(
        "0 11", 
        "01"    
      )}")   
  
  
      println(s"TEST-6...${driver(
        "Y sT wgheC", 
        "Ysw"    
      )}")   
  
  
      println(s"TEST-7...${driver(
        "58 824 6", 
        "586"    
      )}")   
  
  
      println(s"TEST-8...${driver(
        "00 100 001 0111", 
        "0100"    
      )}")   
  
  
      println(s"TEST-9...${driver(
        "Q", 
        "Q"    
      )}")   
  
  }
  
source_py: def string_containing_first_letter_every_word_given_string_spaces(str):
      result = ''
      v = True
      for i in range(len(str)):
          if (str[i] == ' '):
              v = True
          elif ((str[i] != ' ') and (v == True)):
              result += str[i]
              v = False
      return result
source_cpp: string string_containing_first_letter_every_word_given_string_spaces(string str) {
    string result = "";
    bool v = true;
    for ( int i = 0;
    i < str . length ( );
    i ++ ) {
      if ( str [ i ] == ' ' ) v = true;
      else if ( str [ i ] != ' ' && v == true ) {
        result . push_back ( str [ i ] );
        v = false;
      }
    }
    return result;
  }