HashedIn by Deloitte interview question

DSA problems in the technical round