My solution to Kaspichan Boat Problem