Sollicitatievraag bij ServiceTitan

One easy and one medium algorithm question. With a very simple sql query to write.