Amdocs interview question

double linked list