Pergunta de entrevista da empresa F5

Object oriented question was a bit tricky