Optiver Interview Question

Adding and multiplying numbers, fractions