Tilling problem 2

I am unable to understand this question. Please explain this question with some examples.

You have to find the no. of ways tile can be arranged on a given floor.
floor size is nm and tile size is 1m
e.g.
floor size: 2 3
so the only possible arrangement of tile will be vertically.( 2 tiles are vertically arranged to cover the floor).
so total ways will be 1 ( vertically)

if the floor size is : 4 4
then the tiles can be arranged horizontally ( 4 tiles are placed horizontally) or 4 tiles can be arranged vertically as well.
so total ways will be 2( horizontally + vertically)

what’s wrong with my code…only one test-case pass