HashedIn by Deloitte Interview Question

question on topic related to dsa