Add sample-input-5.txt
Rename methods and remove debug outputs
Clean up code

Create a new method for finding an element in an array
Use the method to avoid calling uniq.