Added complete solution for transform the expression