Cognizant Interview Question

1. write a Java program code to reverse a sentence and its words. 2. Few other questions related to coding and electronics.