(b) As the electrostatic force are conservative, work done is independent of path .
$W = \overrightarrow{F}.\ \ \overrightarrow{ds} = q\ E\widehat{\dot{i}}.\left\lbrack (0 - a)\widehat{\dot{i}} + (0 - b)\widehat{\dot{j}} \right\rbrack$
$= - q\ E\ a$