How start is initiated

Why s=arr[n-1]; I did not get it,please explain it has to be s=0 why s=arr[n-1]