Whats wrong in my code : Edu Div 2 problem B
logic is simpe calculate all 4
1st loop for first index of 1 or 3
2nd loop for last index of 2
calculate all 4
all 2 after after first index of 1 or 3 : two
all 1 and 3 before index of last 2 : onethree
ans will be all four and min of two,onethree
getting wrong answer at test case 2, dont know whats the test case