solution:
the spring force applied by a spring with spring constant k can be expressed as

where k acts as the spring constant
and x indicates the spring's deformation
to determine the work completed by the spring

the amount of work done by the spring when moving from x=0 to x=L

substituting the limits x=0 and x=L
we derive the work done in terms of k and L


Response:
Clarification:
Provided
weight of disk 
diameter of disc 
weight of ring 
Force 



Overall moment of inertia
=Disc's moment of inertia +Ring's Moment of Inertia


At this point, Torque is 


Utilizing 
in this scenario

