updating the lowestCommonAncestor
as per hackerearth solution
it is kind of LCA to RMQ
I didn't reliase it back then

in febLove I attempted only double Factorial
It passed 1 case only will update it in future