Solution :

Since

 

 

 

and                      for all  i = 1, 2, 3, 4,

 

then  .

 

S = 1  if