What type are my suffixes?
Haskell, 64 53 48 42 bytes



(0!)
k!(x:y)|x:y&gt;y=1:2!y|2&gt;1=k:0!y
_![]=[]


Try it online!

Ungolfed, with Char instead of Int:

suffixes :: String -&gt; String
suffixes = go 'S'
 where
   go :: Char -&gt; String -&gt; String
   go _ "" = ""
   go lorstar s | s &gt; tail s = 'L' : go '*' (tail s)
                | otherwise  = lorstar : go 'S' (tail s)