Try to solve the problem for a cable consisting of just ONE wire with one end of the wire connected to say Mega pin 2 and the other end connected to pin 3. Get that working and scale it up.
What specification, what info. Try explaining what you want in complete sentences and paragraphs. If you are not confident in English, write it in your native language then goto Google translate and translate to English.
Won't most of the other students who have been given this assignment be using ChatGPT or similar AI to solve it ?
Start simple and ask it to write an Arduino mega sketch to test the continuity of one wire.
When you can verify that it works, ask it to do the same with 2 wires and also check for any possible short circuit between the two wires. Ask it to write a user manual and a test schedule so you can verify it works.
Once you have it working with 2 wires, Start scaling up to the maximum number of wires in this exercise.