InterviewBit Problems   Subarray with B odd numbers : Unsolved


About the Subarray with B odd numbers : Unsolved category (1)
My code returns correct answer on other compiler but garbage value here, please help (1)
Some problem with this question! (2)
Solution gives Correct Output with Custom Testing but fails on submission (4)