Show the worked solutionAll 10 characters are distinct, so each substring is fixed by its start and end positions.\[\boxed{\frac{n(n+1)}{2}+1}\]\[\frac{10\cdot11}{2}=55\ \text{non-empty substrings},\quad +1\ \text{empty string}=56.\]Answer: D
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com