Solution for 12_rpn_calculator