Pergunta de entrevista da empresa Segwise.ai

I was asked to implement a Transaction class in Python with commit and rollback funtionality.