Comcast Interview Question

Javascript coding round and more about promise concept.