Pergunta de entrevista da empresa Attune Insurance

Re-write/expand upon this code so that does [X] and looks like [Y[.