You have chosen to sponsor your bid up to a maximum amount of .
Complete the following Haskell function deﬁnitions. You may use any Haskell standard prelude or library function. You may need to write auxiliary “helper” functions in some cases.
Place all deﬁnitions in a single ﬁle. Use the speciﬁed function name as your code will be tested by a Haskell function expecting that function name.
The testing program may use many more test cases than the ones shown in the speciﬁcation. So, please test your functions extensively to ensure that you maximise your marks.