Welcome to the kitty puzzle, you have 20 boxes to check to rebuild the kitty,…