Sollicitatievraag bij Indeed

How would you approach this problem using sql?