In one of Rebbe Nachman most uplifting teachings, he explains that suffering comes from Hashem, like everything else in life. Therefore, when a person experiences difficulties in life, he or she should focus on the ultimate purpose. Since the ultimate purpose is Hashem's will and intention, it's all good. So, by focusing on Hashem, one's suffering becomes much lighter. Indeed, he or she will feel joy as a result of the abundant good that comes from connecting with Hashem. That's the ultimate good.