Pregunta de entrevista de Oracle

Several technical questions and a small challenge on comparing 2 objects.