I was given a take home test after an interview that took me a lot of time to complete. The project includes an API, realtime database backend and a mobile frontend with remote notifications.
Is there a software license I can include that would compensate me or prevent the potential employer from using my code in a future project if I don't get the job? I'm expecting to get an offer after submitting the project but I've done these tests before and want to protect myself.