Google Interview Question

Was asked about Hexadecimal numbers, bytes, virtual functions in c++ and was asked to write a program that matched string patterns.