Capgemini Interview Question

Basic programming: To convert first letters of all the words in a string to upper case