CGI interview question

Solid principles