Publicis Sapient interview question

All question based on JAVA and oops.