Cognizant Interview Question

Given a string capitalize first letter