Infosys interview question

Basics or java and python