What is the difference between declarative and imperative programming?
Implement a function that computes the sum of squares of values greater than a threshold in both styles. Return both totals in a two-element list, with the imperative result first and the declarative result second.
The function accepts a list of integers and an integer threshold. The output must be [imperative_total, declarative_total].
def compare_programming_styles(numbers, threshold):