Domanda di colloquio di Robinhood

One Python question and two SQL questions. The problem is relative to the real world.