BNP Paribas interview question

Sql commit