TikTok Interview Question

String partition based on max unique chars