Publicis Sapient interview question

basic java and sql questions