Craterzone interview question

Some basic question from oops and sql