Microsoft interview question

How do you troubleshoot an error in SharePoint?