HCSS Interview Question

Can you demonstrate how you would code this process?