HashedIn by Deloitte interview question

CS fundamentals + DSA easy-medium