Capgemini interview question

How to check Linux user lock or not