Determine Reporting Relationships | Google Coding Question