Count Cyclic Number Pairs

Company: Texas

Difficulty: medium