When you say "median of the three elements in the original list ending in that position", what is "that position" referring to?
38