How to Reset Password using WordPress

In wordpress password reset is very easy compare to other password integration method. for reset password we have to pass only two parameter in wordpress default function, first parameter is your selected user id and another is whats new password we have to set.
below is an example showing how to update a user’s password