New Relic interview question

Knowledge on SQL, basic Data structure