Thanks for the reply, but I dont get the relation of this kind of problem with solver.

Thanks.