This question really sucks man!


#1

this question is saying wrong output for any solution I am providing. These things sucks in Interviewbit


#2

Try to understand the problem statement and try few approaches. if u get stuck do ask for help or check out solution of others and try again