Use an if condition inside the loop. Frame the concept in practical terms so you can explain it during interview discussion.
To sum only prices above a certain amount, add an if statement within the loop to check each price before adding it to the total. For example, to sum prices over $20: int total = 0; for (int i = 0; i 20) total += prices[i]; }.