Pergunta de entrevista da empresa PayIt

How would you approach this problem differently and why?