Company: Apple_1sep
Difficulty: medium
Remaining Leaves in Garden Problem Description It is a windy day today and many tree leaves are covering the garden. Write a program that calculates the number of leaves left in the garden based on their location and a series of wind gusts. How it works: The ground is represented by a grid that is height squares high and width squares wide. The top left box is located at (0, 0) where the first integer represents the row and the second the column. Each element in the grid represents the number of leaves on the ground. The series of gusts, winds , is a string composed of the characters U (top), D (bottom), R (right), L (left). Each gust of wind moves the leaves on the grid one square in the direction of the wind. The leaves fly out of the garden when the wind pushes them out of the grid. Implementation Details: Implement the function remaining_leaves(int width, int height, vector<vector<int>> leaves, string winds) which: takes as inputs the integers width and height , the 2D