2940. Find Building Where Alice and Bob Can Meet - Explanation

Problem Link