Solve Function

Code required to cycle through the given input of user action, such as addition or subtraction, and will then execute based off of the user's selection and provided numbers.