6205. Count Number of Distinct Integers After Reverse Operations || Leetcode Contest Medium || CPP