Revature interview question

Some basic oops concept and some coding problem and also related to SQL.