TCS Interview Question

Write the code to split a word