Opendoor interview question

Reverse Polish