Frage im Vorstellungsgespräch bei Tata Consultancy Services

given an array shift the element by 2 indecies