LeetCode Solution, Medium, 991. Broken Calculator