Any fence upon which the owners of such adjoining lands may agree, shall be a legal fence.
SDCL 43-24-5