HARMAN interview question

Basic javascript questions. observables and promises. the algorithm implementation on string manipulation.