Sunoco interview question

SOQL? SOLID? asked about Database relationships