Wellhub interview question

Code review and improvements; being able to search for errors