Searching Arrays with indexOf and lastIndexOf

Try it