Solve three coding tasks: binary search, tree path, subarray | Amazon Interview Question