Question d’entretien chez Consumer Reports

Easy to Medium level Algorithmic question.