The first thing you need to do is separate them! This is especially important because there is such a big difference in their size. I donated a couple of corns to a teacher a few months ago. One of them was a yearling and the other was a hatchling. The teacher thought she had 2 separate tanks, but one ended up being broken. she put both snakes together that night. She didn't think it would hurt them to be together for 1 night. The next day, she bought another setup, went to separate them, and only found one very fat yearling. He had eaten the hatchling.
In addition to the risk of cannibalization, there are many other risks including disease transmission, illness due to stress, feeding problems due to stress, egg binding at too early of an age if you happen to have a male and female, and several others.
Now to address your question...If the little one seems dehydrated, then you should soak it for about 10-15 minutes in lukewarm water (The water should not feel warm to you. It should only be around 80-85 degrees). This may stimulate the snake to have a bowel movement. Hopefully it will completely rehydrate it, too.
Also, sometimes they have problems defecating during the shedding process. Many of mine will have a BIG bowel movement as their old skin comes off of the vent area.