Count occurrences of individual lower case and upper case characters
var lCount = new Array ( MAX ) . fill ( 0 ) ; var uCount = new Array ( MAX ) . fill ( 0 ) ; for ( var i = 0 ; i < n ; i ++ ) { if ( s [ i ] === s [ i ] . toUpperCase ( ) ) uCount [ s [ i ] . charCodeAt ( 0 ) - " " . charCodeAt ( 0 ) ] ++ ; else lCount [ s [ i ] . charCodeAt ( 0 ) - " " . charCodeAt ( 0 ) ] ++ ; }