this is a very simple problem related to algorithm design course.
even in google there are lots of discussion about this problem.
I am posting it here because I wanna get the perfect solution for this problem.
Problem is attached here as an attachment. Please download the attachment.
This is a simple problem and won't take more than an hour.
I need it by tomorrow.
Please Download Attachment to read the problem. >>