BAKERi interview question

Related to offset and string split