Infosys interview question

mainly on oops and collections based logical based questions