To change your restrictions passcode on an iPhone, you'll need to go into your Settings. Where you go from there depends on your iOS version.
Windows 10 allows you to change your password or recover it at any time if you forget it.