Omnie Solutions interview question

core java, sql logical based