General Motors (GM) interview question

Title case a sentence in Python