Central Insurance interview question

Standard SQL stuff was asked