Function to count tiles of dimensions 2 x 1 that can be placed in a grid of dimensions M * N as per given conditions
def numberOfTiles ( N , M ) : NEW_LINE INDENT if ( N % 2 == 1 ) : NEW_LINE INDENT return - 1 NEW_LINE DEDENT DEDENT