KPMG Interview Question

How would you code a given problem using R or Python?