Pergunta de entrevista da empresa Anduril

Asked how to solve controlling a power system multiple if else conditional statements to make it work no trick or optimization just normal conditionals