Amagi interview question

Grid search using DSA; LLD SOLID principles