Pergunta de entrevista da empresa Ness Digital Engineering

basic java ques,puzzle one cabin 3 switch problem