Frage im Vorstellungsgespräch bei Pocket Gems

Implement indexOf function given a haystack and needle string