Cambridge professor said she is ‘using the same bit of math that Alan Turing used to crack the Enigma machine’ to give her an edge on the show