Please see the work below.
Work Step by Step
We know that atmospheric pressure decrease as altitude increases. That's why air pressure changes from the initial point from where we started to drive in mountain. As a result, the ear starts to pop as we go up the mountain.