Concentrix interview question

Sql queries