Soliton Technologies interview question

Use array to separate two words from input