Braintrust Interview Question

write a piece of Python code for a given question