There is nothing mentioned about indices B ans C so it implies B can be equal to


#1

there is nothing mentioned about indices B ans C so it implies B can be equal to C (neither is it mentioned that all 4 should be distinct). so for [ 1, 1, 1, 1, 1 ]
lexicographically smaller would be 0 1 1 2 its giving WA – same for B and D.