Part of being a JavaScript ninja is being somewhat proficient at tackling algorithms or what I've bee...