o9 Solutions Interview Question

shift left/right array elements by nth number