Concentrix interview question

SQL - Given Case scenario - Solve SQL Query based on provided input.