Freelancer interview question

Database schema, SQL, coding logic