William Hill Interview Question

Implement the curry and uncurry function