Here is the answer to the question that was posted, here . There are a few ways to answer this, you can use the brute force method or you can look for an easier way. This actually turns out to be a problem space where there is a specific way to solve...(read more) ...
Go to the complete details ...