Craterzone Interview Question

Some basic question from oops and sql