Linear search

Drag and drop the lines into the box on the right. The constructed function should return the index of the target if the target is in the list, otherwise -1 to show that it is not in there.