Amazon interview question

Distinct count on airline routes