Regaliz interview question

Assignment in previous company