NucleusTeq interview question

Question from java, sql and dsa basics