Subarray Program In Python For Perfect