Nagarro Interview Question

data structure questions with high complexity