HackerEarth May Circuits'20 Or Problem solution

Does anyone have a simple approach to this problem?
Problem Link