Brex Interview Question

Given a string that represents a valid math expression, implement a function to evaluate it and return the result. e.g. "one plus two times five".