HackerEarth Interview Question

Graph-Based, Bit manipulation, Greedy solution and DP