Question d’entretien chez Lockheed Martin

Use C++ to solve a given problem.