o9 Solutions interview question

shift left/right array elements by nth number