RevenueCat interview question

I was given input data and was explained what output was needed. It reflected a potential work task.