I would also suggest going through the Release Notes below and refer to the Upgrading from Cisco IOS XE Denali 16.x.x in Install Mode section for a detailed step by step procedure to follow:
In case you run into any issues during the activity, please call into our Support helpline and they will allocate the On-call engineer for assistance.
Once the update is loaded on the switch perform the below commands during the Maintenace window.
Cisco WS-C3850-24XS-E