2X Interview Question

Requested to do design test