class Solution { public: //Function to find maximum of each subarray of size k. vector max_of_subarrays(int *arr, int n, int k) { // your code here vector temp; vector v; for(int i=0; i