You are given a DataFrame df of sales transactions with the columns region (string), product (string), status (string), and amount (numeric). Write a function solution(df) that:
status is exactly "completed".region and computes the total amount for each region.The returned DataFrame must have a default integer index and exactly two columns named region and amount. If after filtering there are fewer than 10 regions, return all of them.