you give head link list n nodesfor node list find value great node that node find value node strictly large value itreturn integer array answer answeri value great node ith node 1indexed if ith node great node set answeri 0 example 1input head 215output 550example 2input head 27435output 70550 ConstraintsThe number node list n1 n 1041 Nodeval 109