Megha and Rehan came across a safe containing old stamps and coins that their great-grandfather had collected.
 
It was secured with a \(3\)-digit password.
 
Since nobody knew the password, they had no option except to try every password until it opened.
 
They were unlucky and the lock only opened with the last password, after they had tried all possible combinations.
 
How many passwords did they end up checking? ii