RPN another solution