Workday’s CEO says his career took off after he changed his attitude—and Amazon boss Andy Jassy swears by the same mindset hack