Mobisec Technologies Interview Question

basic dsa question on array and string.