Enzigma interview question

In f2f round they ask to write a query on database