Firstly, thank you for your effort but as the title says, It isn't working on Office(Outlook) 365.
I have create the DNS records as instructed in your guide as shown here:
https://mxtoolbox.com/SuperTool.aspx?action=srv%3a_autodiscover._tcp.theconfidenceco.co.za&run=toolpage
I have also placed the necessary xml file(index.php) in the correct location as seen in this screenshot below:

However, Outlook still doesn't manage to autodiscover the settings correctly as shown here:



Is this not meant to work with modern outlook versions?