java programs asked in interview for automation tester