Divide binary array into three equal parts with same value
Given an array A of length n such that it contains only '0s' and '1s'. The task is to divide the array into THREE different non-empty parts such that all of these parts represent the same binary value(in decimals). If it is possible, return any [i, j] with i+1 < j, such that: A[0], A[1], ..., A[i