Beinex interview question

Json promise and api integration