can any one give coding for this problem??????
can u give me the code for this algorithm or tell me how to implement it.
Separate names with a comma.