Braintrust interview question

write a piece of Python code for a given question