States A, B, C, D are represented by y2y1-00, 01, 10, 11 respectively in the table below. Solve a simplified output expression for 'Z' as a function of the present state.