Magnetic force on a wire problem

Question

Hints

Answer