iPhone 7: How to put it to recovery mode

An iPhone 7 can encounter problems along the way that it would need to be reset and one way for this to happen is to have it in recovery mode.