Question d’entretien chez Rover.com

How would you write this objective function?