a bus n stop number 0 n 1 form circle we know distance pair neighboring stop distancei distance stop number 1 nThe bus go direction ie clockwise counterclockwisereturn short distance give start destination stop Example 1input distance 1234 start 0 destination 1output 1explanation Distance 0 1 1 9 minimum 1 Example 2input distance 1234 start 0 destination 2output 3explanation Distance 0 2 3 7 minimum 3 Example 3input distance 1234 start 0 destination 3output 4explanation Distance 0 3 6 4 minimum 4 Constraints1 n 104distancelength n0 start destination n0 distancei 104