2776: Convert Callback Based Function to Promise Based Function

Problem Statement