SDG Group interview question

SQL, logica e matematica .