Capital One Interview Question

Reverse polish notation, medium Leetcode