Since the password must be 9 digits long and the spy notices that Camila used 9 different digits, then, the probability that the spy unlocks the tablet on the first try is equal to 1 over the total amount of different ways in which 9 digits can be ordered (the spy knows the 9 digits that form the password but he does not know the order in which they should appear).
In general, there are n! ways of ordering a set with n elements.
Then, the total amount of different sequences that can be built using 9 digits is:
Therefore, the probability that the spy unlocks the tablet on his first try is: