Step Three

Image credit to https://www.includehelp.com

Usually linked lists end with a node with no next reference, but we're looking for a sequence with a next pointer to a previous node. What might be the brute force solution here?

JAVASCRIPT
OUTPUT
Results will appear here.