Parse a nested list from a string | TikTok Coding Question