5. Univariate sequential encoding It’s time to construct the sequential mechanism to maintain observe of person…