Kadane's algorithms

question link-https://online.codingblocks.com/player/16974/content/7491/298

in this question to update the value of ms:-ms=max(cs,ms);
is used ,if i have to write it without the use of library fnc in pure code,then how to write it.

@shubhamshagy It is simple :
if(cs>ms)
ms=cs

yeah that was a silly question…