Amazon Interview Question

Mostly on protocols