2442. Count Number of Distinct Integers After Reverse Operations

QUESTION:

EXPLANATION:

SOLUTION:

>