Nagarro interview question

DSA related mostly - Difficulty Average