def getTotalVolume(solution):
    """ Returns the total occupied volume of all the presents. """
    volume = 0
    for id in solution:
        volume += solution[id][0] * solution[id][1] * solution[id][2]
    return volume