Quote:
Can someone make a program
This is your homework, it is your duty to search and try possible solutions.
The job of programming is about creating algorithms.
Quote:
Pretty much nothing because i am new to this.
First lead: how would you solve the problem by hand ?
Try to transform this manual method to an algorithm and to program, then see what don't work, and try to find corrections.
The most simple method is brute force, aka try every possibility and see which one lead to solution.
We will be happy to help you with problems in you code.