.
It is an ENTERTAINMENT problem.
The way and the method to solve it is "trial and error".
This problem was given to you
a) to develop your skills
b) to entertain you
c) or, if NEITHER a) NOR b) - to help you to kill your time.
Under these circumstances, for what reason do you redirect your assignment to us, the tutors ?
Solving this problem is YOUR PERSONAL TASK.
Apply "trial and "error " method and achieve either of the three goals a), b) and/or c), on your choice.
Happy trials and errors !