Leetcode Rotated And Sorted Array In Python Code Generator