Added a function to convert expression to prefix expression