https://ruclips.ru/en/watch/lW-AyxujIGo/left-rotation-of-array-hackerrank-solution-c