Encompass Health interview question

Good code of practise, safety