Problem 300 (python): underway, but inefficient strategy needs to be fixed