Rootquotient interview question

All based upon DSA and SQL , DBMS