The document outlines a programming task in C++ involving the modification of a binary tree class, including the implementation of three functions: nodecount, leavescount, and swapsubtrees. Additionally, the document specifies the requirement for a pre-order traversal to print the original and modified trees, using a given dataset to build a binary search tree. It also includes a segment of code with definitions related to a binary tree type and associated node operations.