There is a fence that consists of $n$ planks arranged in a line. Each plank is painted with one of the available $100$ colors. Suppose that for any two distinct colors $i$ and $j$, there is a plank with color $i$ located to the left of a (not necessarily adjacent) plank with color $j$. Determine the minimum possible value of $n$.
1. **Understanding the Problem:**
   We need to determine the minimum number of planks, \( n \), such that for any two distinct colors \( i \) and \( j \) (where \( i \neq j \)), there is a plank with color \( i \) located to the left of a plank with color \( j \). There are 100 colors available.

2. **Initial Observations:**
   - Each color must appear at least once.
   - If a color appears only once, it must be positioned such that it satisfies the condition for all other colors.

3. **Analyzing the Constraints:**
   - If a color \( c_1 \) appears only once, it must be to the left of every other color \( c_2, c_3, \ldots, c_{100} \).
   - However, if another color \( c_2 \) also appears only once, it must be to the left of \( c_1 \) to satisfy the condition for \( c_2 \) and \( c_1 \). This creates a contradiction because \( c_1 \) cannot be both to the left and to the right of \( c_2 \).

4. **Conclusion from Constraints:**
   - At most one color can appear exactly once.
   - All other colors must appear at least twice to ensure that for any two distinct colors \( i \) and \( j \), there is a plank with color \( i \) to the left of a plank with color \( j \).

5. **Calculating the Minimum Number of Planks:**
   - Let one color appear exactly once.
   - The remaining 99 colors must appear at least twice.
   - Therefore, the minimum number of planks is \( 1 + 2 \times 99 = 1 + 198 = 199 \).

6. **Constructing the Sequence:**
   - A valid sequence can be constructed as follows: \( 1, 2, 3, \ldots, 99, 100, 99, 98, \ldots, 3, 2, 1 \).
   - This sequence ensures that for any two distinct colors \( i \) and \( j \), there is a plank with color \( i \) to the left of a plank with color \( j \).

The final answer is \( \boxed{199} \).