This my puzzle is inspired by this puzzle.
A sleeping snake has 36 consecutively numbered segments.
It is hidden in a 6x6 gridded square ground.
Each snake's segment fits exactly in 1 grid square.
The first segment is the snake's head.
Every two consecutive segment lie in grid that share an edge.
Each row has only 1 special segment.
(A special segment is an $n$th segment where $n$ is a multiple of 6.)
Each column also has only 1 special segment.
(Note : It is like placing 6 rooks in the chessboard, where the rooks do not attack each other.)
A snake charmer knows the position of its head and its tail.
This picture shows the snake's head and tail.
Note : The Head and Tail in the picture just show where the head and tail are, and are not placed facing any particular direction.
How was the snake lying down (asleep) on the ground?.