Question d’entretien chez Pocket Gems

Implement indexOf function given a haystack and needle string