Thanks for reaching out. Could you please share a few more details like what exactly is happening when you are trying to create the link? Is it like you are getting any error or you are not getting an option to create the password-protected link?
We'll also need te version of XD and the OS.
For more information on how to share the links, please refer to this article: https://helpx.adobe.com/xd/help/create-shareable-links.html
Thanks to reply me
the problem is already solved.
When I created a new link I was able to add the password
Glad to hear that! Feel free to reach out if you have any other questions or issues in the further.