Pergunta de entrevista da empresa Cognizant

Introduction 4 codes are based on Java