Oracle interview question

1. Write a java program on adding a numbers from 1 to 10 2. Write a unit tests to test the above program. Interviewer focused more on this unit tests. We have to write all possible scenarios to test the java program. 3. Selenium program to automate a web page 4. Write an xpath to identify an elemenet.