design a combinational circuit that has four inputs (ABCD) and one output(Z). The output equals one when the Gray coded number represented by ABCD is less than five. Reduce the function using SOP or POS forms and then partially factor if possible. Utilize a decoder to realize this function.