Question d’entretien chez Jane Street

They asked me to implement two functions in a data class.