Functional Programming homework

not completed