ABC interview question

about project,sql query.