Global Loyalty Interview Question

Basic competitive programming question, past experience, and basic knowledge about the tech stack