Cognizant Interview Question

asked on c programming, oops and MySQL