Third Attempt: Leecode 463. Island Perimeter | Understanding My Mistakes