You can reset an Amazon Firestick to factory settings by opening the My Fire TV menu, or by using a button shortcut.
You can get HBO Max on an Amazon Firestick, or any other Amazon Fire TV device, by searching for the app and downloading it.