For this Question: Rohit loves vowels and he likes a string if it contains all the vowels atleast once.
You are given a String S of length N integers. Find minimum length substring of S which contains all vowels atleast once (it may contain other characters too).The first line contains string length and the second line contains the string.

Constraints 
1 <= N <= 100000
String contains lowercase english alphabetsThe output should contain only one integer which is the length of minimum length substring containing all vowels. If no such substring exists print -1.Sample input 1: 
7
aeiddou

Sample output 1:
7

Sample input 2: 
7
daeioud

Sample output 2:
5

Sample input 3: 
7
daeiodd

Sample output 3:
-1, I have written this Solution Code: t=input()
t=int(t)
x=input()
x=x[::-1]
start=0
a=0
e=0
i=0
o=0
u=0
l=[]
n=len(x)
j=0
value=100000
while(j<n):
    if(x[j]=='a'):
        a+=1
        l.append(x[j])
    elif x[j]=='e':
        e+=1
        l.append(x[j])
    elif x[j]=='i':
        i+=1
        l.append(x[j])
    elif x[j]=='o':
        o+=1
        l.append(x[j])
    elif x[j]=='u':
        u+=1
        l.append(x[j])
    while(a>=1 and e>=1 and i>=1 and o>=1 and u>=1):
        if(value>(j-start+1)):
            value=j-start+1
        if(x[start]=='a'):
            a-=1
        elif(x[start]=='e'):
            e-=1
        elif(x[start]=='i'):
            i-=1
        elif(x[start]=='o'):
            o-=1
        elif(x[start]=='u'):
            u-=1
        if(l):
            l.pop(0)
        start=start+1
    j+=1
if(value==100000):
    print("-1")
else:
    print (value), In this Programming Language: Python, Now tell me if this Code is compilable or not?