Capgemini Interview Question

how to make immutable class