Cognizant interview question

To solve a DSA question while explaining our intuition