Help me in solving CIRCUITS problem

My issue

can’t understand the problem

My code

import java.util.*;
import java.lang.*;
import java.io.*;

class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here

	}
}

Problem Link: Randomly Testing Circuits Practice Coding Problem

why are you attempting that problem you should practice lower rating questions first