Yuj Designs Interview Question

to explain the design test solution