This question gives two sister species with ranges that just touch at one elevation (1800 m) and never overlap. The trap is to look at today's map and assume the split is happening right now, across that boundary. Let's check what each term in the options actually needs.
The pattern described, closely related species occupying adjacent, non-overlapping elevational bands with a shared boundary, is the textbook signature of past geographic isolation followed by range expansion and secondary contact. That is allopatric speciation, even though the present-day map looks parapatric at first glance.
Let's summarize:
So the mode of speciation that best explains the distribution of species A and B is allopatric speciation.