Nasdaq interview question

Basic Questions from Java, SQL