@RadhikaNavkar Here you go.
Full flow below. I'll go into each of the actions.

Data is a Compose that has your raw JSON data.

Select extracts out each of the SId values into a simple array. Note that for Map I've used text mode (see arrow on screenshot below). The expression used here is:
item()?['SId']

SId is a Compose that uses the union expression to remove duplicate SId values.
union(body('Select'),body('Select'))

XML is a Compose that converts your raw Data to XML so we can use XPath in the next step to calculate across the different objects. Note that this also adds a root element to the data so it's valid XML.
xml(json(concat('{"root": { values:', outputs('Data'), '}}')))

Output is a Select that takes in the output from the Compose called Sid and uses the following expressions:
item()
xpath(outputs('XML'), concat('sum(//values[normalize-space(SId/text())="', item(), '"]/Rs/text())'))
xpath(outputs('XML'), concat('sum(//values[normalize-space(SId/text())="', item(), '"]/Max/text())'))
mul(xpath(outputs('XML'), concat('sum(//values[normalize-space(SId/text())="', item(), '"]/Rs/text()) div sum(//values[normalize-space(SId/text())="', item(), '"]/Max/text())')), 100)

The final output after running the flow is:
[
{
"SId": "63",
"Rs": 5,
"Max": 8,
"Percentage": 62.5
},
{
"SId": "64",
"Rs": 3,
"Max": 8,
"Percentage": 37.5
}
]
Hopefully that's what you're after.