AMC Bridge interview question

OOPs Core Level Q, Refer Website