Vibefam interview question

Using Javascript Promise to call a function