Functional Programming Break Continue Javascript Interviewbit