Datafortune Interview Question

SQL