Question d’entretien chez Cognizant

Core java, spring framework,basic coding question to test the logic