Controlling lights from 2 switches-

sadsad:
will it be possible to use arduino to sort out this problem.?

Bad idea.

sadsad:
or should i buy tree way switches insted.

That. Do you know enough about mains voltage electrics to be sure you can wire them up correctly and safely? If not, consider paying an electrician to do it for you. It's a quick job and therefor not likely to be expensive, and this is the sort of thing that could realistically kill you if you slip up.