QA InfoTech Interview Question

code to split the string with spaces and find string of max length without use of any string inbuilt function.