Cognizant interview question

about electronics questions and basic java