Amazon interview question

Questions based on linked list , graph -topological sort