Astera Software Interview Question

Optimize and refactor code using Solid principles