Python Algorithms Practice Problems