Optimal Algorithm Find Shortest Subarrays with Fewer Elements in B than A