MHIRJ Interview Question

How to split a string by the white space in it?