Company: Microsoft intern
Difficulty: medium
Square Tile Arrangement You need to fully tile a 4×4 square floor. The middle of the floor is always covered by arranging four 1×1 tiles into a 2×2 block, and the remaining outer area of the floor is covered using larger 2×2 tiles. Example Cases: Given M = 0 and N = 18, your function should return 8. Sixteen 2×2 tiles are available to cover the floor, though the finished layout does not need to use every one of them. Given M = 13 and N = 3, your function should return 5. One of the possible arrangements is shown in the following image: Constraints: M and N are integers within the range [0..1,000,000,000] Task: Write an efficient algorithm for the given assumptions. This problem statement has been adapted for educational use.