Thales interview question

Write and interpret some code snippets