Return max of (lastIndexOf val - firstIndexOf val) over values present.
maxSpanSimple([1, 2, 1]) -> 2