Capgemini interview question

It was completely based on Collections,Exceptions, String and Spring