JPMorganChase interview question

implement a simple math calculator