HashedIn by Deloitte interview question

About sql and system design