Create a function to emulate a Reverse Polish Notation calculator.
rpn([1, 2, "*", 4,5, "*" , "+"]) ➞ 22 rpn([1,1,"+"]) ➞ 2 rpn([16,16, "/" ]) ➞ 1