Thomson Reuters interview question

Some basic testing questions, Java basic programs and some quick puzzzels