MathWorks interview question

Onsite: Write a Java code that implement all mathematical "Fraction" operations?