Wallet Hub Interview Question

Assignment was given for 2 question