XL Dynamics interview question

Cracking the Case Study