Rithum Interview Question

Split a String on certain conditions