Problem 5, F#
Problem 6, F#