Implement Kac Ring Simulation with O(1) Step Query | Hello Interview