apple pie's submission of Longest AND Subarray | CodeChef