Pergunta de entrevista da empresa KrazyBee

Joins using different queries, and time complexities.