Wells Fargo interview question

On programming, there is one problem with the usage of virtual function; there's also a buffon's needle problem