Cal Newport suggests going out for meditative walks or indulging in physical activity such as jogging or swimming that will take your mind off the complicated problem. Once you do this, you will be refreshed and will be able to dive back into the problem and find new perspectives, and you may find the solution staring you in the face.
READ SOURCE