Chatham Financial Interview Question

Coding questions, like why are you using this method while coding