Improved algorithm for Problem 5