You're adding functionality to your geometry calculator. Write a C++ function named calculatePerimeter that has two overloaded versions:
The first version takes the length and width of a rectangle as parameters and returns the perimeter of the rectangle.
The second version takes the side length of a square as a parameter and returns the perimeter of the square.