Meta interview question

Product and sql questions