VISA Summer internship OA-On campus

An information from our placement cell that VISA is coming to our campus for Summer internship role and after two reshedule they finally schedule the OA on 24th october.

The OA takes place in Codesignal.There is total of 4 questions and for total mark of 600.

They send the access link prior to one day but we allowed to take the assessment on the given time in our college lab.

They give total of 70 minutes to solve that 4 questions

1.)The first one is very simple which is basic .They give the integer n and we need to create the square which is similar to pattern printing for example .If they give n=4
****
--
--
****

2.)The second one is string manipulation which is again easy level problem in leetcode.They give the vector of string .We need to reverse the string if both first and last character in the string is vowel by keeping that vowel letter as it is.If the condition fails keep the string as it is.
Example:
input=["abcde","acvbn","Etuilo"]
output=["adcbe","acvbn","Eliuto"];

3.)The third question is Test justification with some modifications in requirements which is hard level problem in leetcode.You can refer this under leetcode 68.

4.) The fourth question is based on substring.They given the array we need to find the number of soowath sequence.The substring is soowath if it conatins alternate odd and even number.

condition for soowath sequence
1 2 3 4 -YES
1 3 5 7-YES (ONLY ODD)
2 3 4 7-YES
4 8 2 6-YES (ONLY EVEN)

whereas
1,2,4 and 2,3,5 is not soowath sequence.

Example
1 2 3 4
ans=10 (1,(1,2),(1,2,3),(1,2,3,4),2,(2,3),(2,3,4),3,(3,4),4)

Since the constarint is 10^5 we need to come up with linear time complexity.

Comments (2)