Pergunta de entrevista da empresa IXL Learning

Create an algorithm that takes string containing integers connected by + or - operations (such as "10+4-3" and computes it.