XYZ ENCRYPTION difficult to under stand question

if su and sv are same then how it neighboring charecter of each other???

these are two different conditions , if first or second