ZS Associates interview question

How to rotate an array by k positions?

Interview Answer

Anonymous

3 Sept 2025

I gave the rough approach but was unable to get it right and code it.