Amazon interview question

Mostly on protocols