Grability Interview Question

Feature solution