Implement solution 43.