All Solid Principles Javascript Interview Question