Hola interview question

Implement a deferred class that exposes 2 methods: resolve and then