I need a algorithm to be designed for 2nd problem of the attached PDF.
The algorithm should be supported by a report which explains the algorithm with examples.
I need this to be done in 3-4 hours from now.
Please bid only after looking into the PDF and if you can do it in 3-4 hours