Guidewire Interview Question

Didnt pass the coing test