If the person is null, then salesTeamId is set to -1. If the person is null null, then salesTeamId is assigned to person.SalesTeam.Id.
The tertiary operator is an if-then-else statement embedded in one line (this can usually be scattered across multiple lines, but this is somewhat surprising).
This may be clear to add parentheses:
int salesTeamId = (person == null ? -1 : person.SalesTeam.Id);
The following pseudo code may also help:
int salesTeamId = (IF person == null THEN USE -1 ELSE USE person.SalesTeam.Id );
source share