def check_all_rows(A):
    """
    Check if all rows in 2-dimensional matrix don't have more than one queen
    """
    for row_inx in range(len(A)):
        # compute sum of row row_inx
        if sum(A[row_inx]) > 1:
            return False
    return True