My code is not passing all the test cases..I updated my code but can it give the correct output on all possible test test cases
Question: Sumit has always believed in his lucky number. Since childhood, his favorite and been lucky number has been 4 So, his teacher tried to test his skills. She gave Sumit a sequence of an integer numbers. As Sumit's lucky number is 4, she gave the following conditions to solve the sequence problem: A sequence A [] of N integer numbers is given. For each step, you can pick 2 elements in the sequence, remove them, and compute their sum. Then append this sum at the end of the list You can iterate the above pair of steps any number of times. In the end, you need to make sure, that each element of the sequence is divisible by 4. Output the minimum number of steps you need to perform to make sure that all the elements of the updated sequence are divisible by 4. If it is not possible to convert the entire sequence Test case: input 7 1 2 3 1 2 3 8 output: 3 input 4 2 4 6 8 output 1 code!!!! https://code.sololearn.com/cm17N4NOaFcA