rewrite leetcode evaluate reverse polish notation