linke list version with correct answer