The file contains a basic problem that can be solved using C++ Require: You need to write the logic for the given problem statement