BNP Paribas interview question

Oops concept, c programming, sql