you are required to fix all logical errors in the given code You can k & Run anytime to check the compilation/execution status of the progra use system out printin to debug your code The submitted codeshould ogicallysyntactically correct and pass all teatcases Do not wie the maind function as it is not required Code Approach For this question, you will need to correct the given mplementation We do not expect you to modily the approach o inr additional library methods The function/method countElementRange accepts four arguments size- an integer representing the size of the array nputArray-a list of integers representing an array (assume this will not be null o low- an integer representing the lower bound of the range (inclusivel Ths will be than "high high-an integer representing the upper bound of the range (inclusivel This will b than "Jow" t is supposed to return an integer representing the number of olements in the gv range The function/method compiles successfully but fails to retun the desired ult test cases due to incorrect implementation of functionimethod countElement Your task is to fix the code so that it passes all the test cases equired to fix all logical errors in the given code. You can click on Compile & Run anytime to check the compilation/execution status of the program. You can use System.outprintin to debug your code. The submitted code should blogically/syntactically correct and pass all testcases. Do not write the main() function s it is not required. Code Approach: For this question, you will need to correct the given implementation. We do.not expect you to modify the approach or incorporate any additional library methods The method reverseArrayfint arr) of class SortArray accepts an input array arr as an argument. The function is expected to reverse the elements of the input array in-place For example if the nput array aris (20, 30, 10,40, 50j, the function is expected to return (50,40,10, 30, 20) The function compiles successfully but fails to return the desired result due to logical errors Vour task is to debug the program to pass all the test cases t e 9 ere to search