Pregunta de entrevista de Gloat

create function that recive cb and returns it as promise