Goldman Sachs interview question

Detect loop in a linked list, know java collections and difference between c++ and java, some SQL database examples, some logical questions that in fact were not logical at all but just didn't make sense in general...