@Mohammed Feroze Khan You can try following from Office 365 Admin portal :
1) In the admin center, go to the Settings > Org Settings.
2) Go to the Security & privacy page. If you aren't a global admin, you won't see the Security and privacy option.
3) Select Password expiration policy.
4) If you don't want users to have to change passwords, uncheck the box next to Set user passwords to expire after a number of days.
5) Type how often passwords should expire. Choose a number of days from 14 to 730.
6) In the second box type when users are notified that their password will expire, and then select Save. Choose a number of days from 1 to 30.
7) When the user's password expires, they'll get a notification that appears in the lower right corner of their screen.
If the suggested response helped you resolve your issue, please do not forget to accept the response as Answer and "Up-Vote" for the answer that helped you for benefit of the community.