Mark43 interview question

The different level is similar to LeedCode