8x8 interview question

Write Immutable class