Chip (United Kingdom) interview question

Take Home task was given