Using the definition
write a function
that returns an equivalent rational to n/d and “normalized” according to: if the numerator is 0, the denominator is 1; otherwise, the numerator and the denominator do not have any common factor, and the denominator is positive.
d ≠ 0.
Observation You only need to submit the required classes; your main program will be ignored. Strictly obey the type definitions of the statement.