Pergunta de entrevista da empresa Plinc

Logic puzzles, some basic SQL, maths/probability.