Pergunta de entrevista da empresa Siya Tech Ventures

Given a array and string at each index, need to reverse each index