Canva interview question

Build a calculator using arithmetic operator precedence. Example: 5*4-3-5^3 output is expected -108