Default [Q] locking and unrooting Att M8 help

Hello all, just sold my ATT M8 and need to unroot and lock it up. I am not seeing what i am looking for or unsure about what i have seen. Can someone please lead me in a direction with a good guide step by step. Any help would be great!!

Thanks