API tuning for take home assignments invites

Fine tuned the API that returns the take home assignments & it's invites to return the response faster if the invites sent per assignment are more than 50.

Assignment showing 167 invitations
Sample assignment showing 167 invitations