Split String by Spaces Unless '*' Appears

Asked at Microsoft · Coding & Leetcode-style Questions · Difficulty: Easy

Given a string `s`, split it into tokens using the following rules:

Loading the problem…