One Concern Interview Question

Coding challenge based on imbalanced dataset.