Thales Interview Question

Write and interpret some code snippets