Problem #5 (naive)
Problem #6