Frage im Vorstellungsgespräch bei Tata Consultancy Services

How to reverse an array based on another array