Including Circular Array

How to improvise this question to include circular array?

Just double up the array!

Brilliant didn;t think of it.