Data Structure & Algorithmic Problem : C++