Cognizant interview question

Solve a DSA question on arrays