Deloitte Interview Question

Python coding questions not too hard