Sonata Software interview question

Basic of Java , Software engineering , Aptitude and reasoning