Intervue.io interview question

Implementation of types of promises