Assignment for data structure subject in university using C++