UKG interview question

This was a coding test