Indeed interview question

How would you approach this problem using sql?