Finally I was able to answer these quries I_2 other implementation - Accepted - Segment Tree :)

Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarreddy@gmail.com>