Support Sages Interview Question

based on my previous projects