Binary Segments With Target Sum - Coding problem | OneNoughtOne