Leetcode 2776. Convert Callback Based Function to Promise Based Function | Hello Interview