BNP Paribas Interview Question

Oops concept, c programming, sql