Spin Interview Question

Parse a string into a mathematical formula