Synechron interview question

inheritance