Google Telephonic Interview
You are given the below array and each element in array is having some specific property
like below
^ = doubles
V = vanishes
any other character remains the same
consider the below input
I/p : '^' '^' 'T' 'T' _ _
this will be converted to array below
O/p : '^' '^' '^' '^' 'T' 'T'
so in the above example consider T as any other character and '_' empty space
when if after doubling this '^' the characters are going out of array length then we can throw error.
we need to return the o/p in the same array we cannot use extra space.