HashedIn by Deloitte interview question

Questions on Trees, Time Complexity, Optimization of code, DBMS