Windows not activated

have just purchased u book and saying windows not activated as key has been used before .how can I get key too activate ?