Come up with an algorithm

 

v20240901