Pergunta de entrevista da empresa Praetorian

Logical puzzles with some conditions, nothing too fancy