Amazon Interview Question

object oriented programming question .