Click on your Mac screen and on top left hand side--> click the  (Apple Icon)  --> Click System Preferences.

When Preferences window opens up, Click on "Show All" Button.

Click "General" Button. Based on your system settings,  you may see this window without the above step

In the General preferences window, select the checkbox next to "Automatically hide and show the menu bar"

That's it!