BugHunt
Helper function returning undefined — JavaScript debugging challenge | BugHunt