Check whether current piece is valid or not If it is , then return zero for current dimension
if ( ok [ l ] [ b ] ) : NEW_LINE INDENT dp [ l ] [ b ] = 0 NEW_LINE return dp [ l ] [ b ] NEW_LINE DEDENT ans = l * b NEW_LINE