ask vet first!
You can try an over-the-counter dewormer, but your puppy needs to see a vet eventually to make sure the worms are gone. Some infections are resistant to OTC dewormers. Please don't try to treat this without consulting a vet at all. You can easily make your pet sicker.
Best to take in to determine which type of worms. There are dewormers sold at feed stores and some pet stores, also.
You can get a dewormer at the vet or check pet supply.
Thanks! Your answer is awaiting moderation.