EXL Service interview question

SQL, puzzle, guesstimate, technical discussion