Wrap callback-style functions so they return Promises
Node.js ships a built-in util.promisify(), and this problem asks you to write promisify in JavaScript yourself.
promisify function. This function should:
This transformation will allow developers to invoke legacy callback-based functions in a more modern, cleaner, and more intuitive way, improving code readability and error handling.