If the closing inventory is too low, then the cost of sales will be too high. (cost of sales is opening inventory + purchases – losing inventory).
If cost of sales is too high, then profit is too low (profit is sales – cost of sales).
You say that you have watched all the lectures, but I do actually stress this because it is such a common question. Higher closing inventory results in higher profit, lower closing inventory results in lower profit.