TuSimple interview question

The interview was working on basic calculator (leetcode hard). Failed it.