The Norwegian monarch was Charles’s second cousin once removed.