I've been resolving a hacker rank problem. The idea it's move "to the left" the elements at first index n times. The problem is when my algorithm receives a large arrays. Produces in the Hacker Rank server a timeout problem. I don't understand the issues behind this problem. . The