In nimbasa city (the city where you fight elesa the electric gym leader) go to the Pokemon center. right next to the Pokemon center, is the battle institute. Go around them both and enter the building behind the battle institute. An ace trainer will be sitting at a table. talk to him and he will give you the HM for the move strength. Strength is used in battle and to move giant rocks in the region.