Pregunta de entrevista de HCSS

Can you demonstrate how you would code this process?