Mercedes-Benz Group interview question

A coding question, SQL, OOPS