TikTok interview question

Implement a basic calculator (leetcode 227)