Robinhood Interview Question

Write promise class from scratch