Design Leetcode Problems On Arrays In Python