By helping a homeless man who lost his memory, the woman became a millionaire