Amazon Interview Question

Basic Calculator problem from Leetcode