ProcDNA interview question

Behaviour analysis and design question