That depends on how you rooted it. SuperSU has a "unroot and survive" mode. If you used Kingo, it unroots as well as roots. If you did it manually with adb, remove the files you pushed to it.
We don;t know what you did so we can't tell you how to undo it.