Sleeping on a challenge may actually work as scientists find dreams can help your brain rethink and solve tough problems overnight.