Concentrix Interview Question

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