IBM interview question

Write your own find() function