Math Help - maximum likelihood estimator

1. maximum likelihood estimator

im not sure where to start i know how use lagrange multipliers for a transition matrix