Calculating the minimum answer for the rectangles with width equal to n and length less than m for finding the cut point for the minimum answer
horizontal_min = min ( minimumSquare ( i , n ) + minimumSquare ( m - i , n ) , horizontal_min ) NEW_LINE for j in range ( 1 , n // 2 + 1 ) : NEW_LINE