Weatherford Interview Question

C++ structure and class