Crimsonlogic interview questions

Crimsonlogic interview questions (Written Program Held On 17-Feb-2018).

1.Write a program to find top maximum number in arrays.
2. Write a Program to reverse each word of given String? for example if “Java Concept of the day” is the input string then out put should be
“avaj tpecnoc fo ehT yaD”.
3. There is a web page to search Employees from database based on first name and last name.User can enter any one of them or both of them to do the Employee search.User can enter few characters for first name and last name to get the list of all Employees containing those characters.Write a hibernate code using criteria and restriction to get the list of Employees matching entered first name and last name.