Simons Foundation interview question

Not much simple core java ques