Rabbit in the black room

optimal solution