Nest (UK) interview question

Asked to use the star method.