Pergunta de entrevista da empresa Wallet Hub

Assignment was given for 2 question