Pregunta de entrevista de Wallet Hub

Assignment was given for 2 question