Cruise Interview Question

C++ coding exercise