Hunter Talent Change

Hi I’m new to the wow I thought I’m a hunter and I put sniper talent and I regretted it and I want to change it to beasts, how can you do the talent change. Thank you

Talk to a guard in Stormwind if you’re alliance, or Orgrimmar if you’re horde and as for the hunter trainer. Go there and interact with the NPC for the option to buy a respec.