Coforge interview question

Difficult Question on Collection Part.