Add seventh problem solution