Squarepoint Capital Interview Question

How would you go about implementing std::optional