Add a new column containing Minterms and Maxterms. Now the table is as follows :
Now by adding all the minterms for which output is 1, we get desired sum-of-products expression which is
X’YZ + XY’Z’ + XYZ
Now by multiplying Maxterms for the output 0s, we get the desired product of sums expression which is
(X + Y + Z)( X + Y + Z’)( X + Y’ + Z)( X ‘+ Y + Z’)( X’ + Y ‘+ Z)