Cognizant interview question

Basic coding Java developer git