A detachment of 25 soldiers should cross a wide as well as deep river with no bridge in sight. They notice two 12-year-old boys playing in a rowboat by shore. The boat is so tiny, but, that it can only hold two boys or one soldier. How can the soldiers get across the river and leave the boys in joint possession of the boat? How many times does the boat pass from shore to shore in your algorithm?