Complexity of the code

is the complexity of the code good or can it be toned down??

Hey @ashishxmathew
No it looks good, can’t be optimized further.