Quoted By:
It's quite simple, you get gud.
But to be honest, if you play enough times with a decent team you'll get there. Pic related: kept the same team and went through four times before getting Master rank. I guess I just got lucky with the Pokémon they generated. I ended up only using Vivi, I never even had to switch to Meowstic or Furfrou.