Lexicographically smallest cyclic shift#1783

Lexicographically smallest cyclic shift (Discussion)