What mistake did I make?

Check here. I have used “Sequence pattern matching” code here and it is running on example test cases. So why am I getting runtime error ??

It must be \text{\red{MLE}}.

Oh ok. Thanks.