Cognizant interview question

Basics of Java and Python