Evaluate Reverse Polish Notation

# Introduction In this challenge, we will be evaluating the value of an expression given in Reverse Polish Notation (RPN). RPN is a postfix mathematical notation where operators follow their operands. The goal is to write a function that takes an array of tokens representing an RPN expression and returns the evaluated value of the expression. The valid operators are addition (+), subtraction (-), multiplication (\*), and division (/), and the operands can be integers or other RPN expressions. The division between two integers should truncate towards zero, and it is guaranteed that the given RPN expression will always be valid and evaluate to a valid numeric value.

|
60 : 00

Click the virtual machine below to start practicing