Leap & Scale Interview Question

Sql queries