Pregunta de entrevista de Mercedes-Benz Group

Aptitude questions easy string and array with some math coding question