Pregunta de entrevista de Squarepoint Capital

How would you go about implementing std::optional