InsuranceDekho interview question

DSA Question was asked that is write a code in which there will be a input field and button. In Input field user can input any expression like (2*3)-5/3 and when button clicked then according to BODMAS rule get the answer of this.