Etctech Global interview question

Regarding sql, array, simple code, database