This requires a Pokemon that knows Fly and another that knows Surf (for example, Basculin and Pidove); or a Pokemon that can learn both (for example, Ducklett or Swanna). Surf onto any body of water, then use Fly. As you fly away, notice that you will leave your Pokemon with Surf in the water.