GEP interview question

SQL and Java basics