Herald Logic interview question

questions are on Oops and DS based java