Added solution for problem #24.
Solver problem #25.