Coding Challenge · INTERMEDIATE
A museum curator is arranging a set of unique exhibits in a single row. Some pairs of exhibits cannot be placed next to each other due to thematic conflicts. Given a list of exhibit IDs and a list of forbidden adjacent pairs, determine the total number of valid arrangements of all exhibits such that no forbidden pair a…