Octave interview question

Finding midpoints between two or more locations.