Maximum Number of Matching Indices After Right Shifts

Maximum Number of Matching Indices After Right Shifts - Coding Problem | K5kC