Amazon interview question

1 about ood, and two medium level algorithm question one has follow ups