ProcDNA interview question

Few Sql queires , fit round