Confidence in Brazil's economy is returning, with bond and stock markets starting to rise, heralding a turnaround for the country.