Squarepoint Capital interview question

How would you go about implementing std::optional