ByteDance interview question

Basic Calculator 3 from Leetcode