LEADS Corporation interview question

About some basic OOP and database question.