void print()
{
for(int i = 0; i < array.size(); i++)
{
if(array[i] != NULL){
cout << array[i]->data << " " << i << endl;
}
}
}
This work to print out only the first Node data but I need to get the data from left and next. I know it has to be recursion but have no idea how to do it.