Medium Accuracy: 12.67% Submissions: 355 Points: 4
Given a value N. In how many ways you can construct a grid of size N x 4 using tiles of size 1 x 4.
Input: N = 1
Explaination: There is only one way.
Input: N = 4
Explaination: The first way can be when all
the 1 x 4 tiles are arranged horizontally.
Second way can be when all the 1 x 4 tiles
are arranged vertically.
You do not need to read input or print anything. Your task is to complete the function arrangeTiles() which takes the value N as input parameter and returns the number of ways to make N x 4 grid using 1 x 4 tiles.
Expected Time Complexity: O(N) Expected Auxiliary Space: O(N)