Standard Chartered Bank interview question

How dynamic_cast is implemented in compiler?