Enter array of nums:


Test if a given array of integers contains 30 and 40 twice.The array length should be 0, 1, or 2.