Intel Corporation Interview Question

validate and calculate a string of a mathematical calculation.