Restart iPhone or iPad when power button are not working

There always come a time when you need to restart your device, and there is a situation when one or more buttons are not working on the device to do the force restart, like power button which is commonly used on most force restart combinations.