TuSimple Interview Question

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