Plinc interview question

Logic puzzles, some basic SQL, maths/probability.