RushOwl Interview Question

Sql and data structure question