Thrive Global Interview Question

Nothing crazy just implement some stuff