(c) While moving from (0,0) to ($a,0$)
Along positive $x$-axis, $y = 0\ \therefore\overrightarrow{F} = - kx\widehat{j}$
$i.e$., force is in negative $y$- direction while displacement is in positive $x$-direction
$\therefore W_{1} = 0$
Because force is perpendicular to displacement
Then particle moves from ($a,0$) to ($a.a$) along a line parallel to $y$-axis $(x = + a)$ during this $\overrightarrow{F} = - k(y\widehat{i} + a\widehat{j})$
The first component of force, $- ky\widehat{i}$ will not contribute any work because this component is along negative $x$-direction $( - \widehat{i})$ while displacement is in positive $y$-direction $(a,0)$ to $(a,a)$. The second component of force $i.e.$ $- ka\widehat{j}$ will perform negative work
$\therefore W_{2} = \left( - ka\widehat{j} \right)\left( a\widehat{j} \right) = ( - ka)(a) = - ka^{2}$
So net work done on the particle $W = W_{1} + W_{2}$
$= 0 + \left( - ka^{2} \right) = - ka^{2}$