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 = Math . min ( minimumSquare ( i , n ) + minimumSquare ( m - i , n ) , horizontal_min ) ; } for ( let j = 1 ; j <= parseInt ( n / 2 , 10 ) ; j ++ ) {