Tanium interview question

easy to mid LC, string manipulation