Kellton interview question

write a code for method chaining.