Pergunta de entrevista da empresa Amazon

Write code to read a math operation (ex: 1 + 2 * 3 /4) from a string and display the result.